package chapter3;

public class MethodBenchmark extends Benchmark {

    void benchmark() {
        
    }
    
    public static void main(String[] args){
        System.out.println(null instanceof Benchmark);
        int count = 10000;
        long time = new MethodBenchmark().repeat(count);
        //mac 1 3000~4000
        //10 5000
        //100 6000
        //1000 29000
        //10000 302000
        
        //company 1 2440
        //10 2790
        //100 4420
        //1000 21185
        System.out.println(count + " methods in " + time + " nanoseconds");
    }

}
